package com.yunchang.springboot.mapper.mwsreport;

import com.yunchang.springboot.models.mwsreportbean.MwsReceiveInventory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MwsReceiveInventoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MwsReceiveInventory record);

    int insertSelective(MwsReceiveInventory record);

    MwsReceiveInventory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MwsReceiveInventory record);

    int updateByPrimaryKey(MwsReceiveInventory record);

    /**
     * 根据createTime获取对应的数据
     * @param time
     * @return
     */
    List<MwsReceiveInventory> getMwsReceiveInventoryListByCreateTime(String time);

    /**
     * 根据financeStatus获取对应的数据
     * @param financeStatus
     * @param limitValue
     * @param date
     * @return
     */
    List<MwsReceiveInventory> selectByFinanceStatus(@Param("financeStatus") Integer financeStatus,@Param("limitValue") Integer limitValue,@Param("date") String date);

    /**
     * 根据MwsReceiveInventory对象集合对financeStatus进行更新
     * @param mwsReceiveInventoryList
     * @return
     */
    int updateFinanceStatusByMwsReceiveInventoryList(@Param("mwsReceiveInventoryList") List<MwsReceiveInventory> mwsReceiveInventoryList);
}